FROM lujihong/hyperf:base-php8.1.26-swow1.4.1
COPY . /opt/www

# Composer Cache
RUN composer install --no-dev -o && php bin/hyperf.php

ENTRYPOINT ["php", "/opt/www/bin/hyperf.php", "start"]